﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="BugSysSolution.TestPage.test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Javascript/jquery-ui-1.8.23.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Javascript/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../Javascript/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
    <script src="../Javascript/datapickerCN.js" type="text/javascript"></script>
    <script src="../Javascript/common.js" type="text/javascript"></script>
    <script src="../Javascript/jquery-framedialog.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="div1">
        <input type="text" id="txt1" />
        <input type="button" id="btn1" value="sss" />
        <input type="button" id="bgn3" value="测试取ajax数据" />
        <input type="button" id="btn2" value="jqdialog" />
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    $("#txt1").datepicker({ dateFormat: "yy-mm-dd", changeYear: true, changeMonth: true });
    $("#btn1").click(function () {
        CusDialog.showdialog("sss", "asdasdasdasd", function () {
            SendAjax("get", "../RequestAjaxPage/test1.aspx", { tag: "s" }, function (data) {
                if (data.length != undefined) {
                    if (data.length >= 1) {
                        for (var i = 0; i < data.length; i++) {
                            alert(data[i].RealName);
                        }
                    }
                }
                else {
                    alert(data.RealName);
                }
            })
        })
    })

    $("#btn2").click(function () {
        $.FrameDialog.create({ url: "../index.aspx",title:'sss',width:800,height:300 });
    })
</script>